var frisby = require('frisby');

frisby.create('获取CFP信息接口')
  .post('http://192.168.247.88:9090/hub/cfp/Dispatch_GetFlightPlan', {
            'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
            DatopBTime:'2013-10-30T00:00:00+08:00',//DATOP开始时间
       	    DatopETime:'2013-10-30T00:00:00+08:00',//DATOP结束时间
       	    StdDateBTime:'2013-10-30T17:30:00+08:00',//航班日期开始时间    建议不为空
       	    StdDateETime:'2013-10-30T14:33:36+08:00',//航班日期结束时间    建议不为空
       	    FlightNo:'cxds',//航班号     建议不为空
       	    Depstn:'cmky',//起飞机场三字码     建议不为空
       	    Arrstn:'dxgr'//到达机场三字码      建议不为空
          })
  .expectStatus(200)

  .expectJSON({
            'ResponseInfo':{
                    "Result":String,
                    "ErrorInfo":String
                  },
            'Data':{
                      "Dispatch":Array
                    }})

  .expectJSON('Data.Dispatch.?', {
            "cniDispatchID":String,//"2112267",
            "cndtdatop":String,//"2013-10-30T00:00:00+08:00",
            "cndtstdDate":String,//"2013-10-30T00:00:00+08:00",
            "cnvcFlightNo":String,//"HU 7081",
            "cnvcDepstn":String,//"HAK",
            "cnvcArrstn":String,//"PEK",
            "cntContent":String,//" ",
            "cnvcRemark":Array,//[ ],
            "cnvcBackupAirport":Array,//[ ],
            "cntReport":String,//" ",
            "cnvcAccessory1":Array,//[ ],
            "cnvcAccessory2":Array,//[ ],
            "cnvcAccessory3":Array,//[ ],
            "cnvcAccessory4":Array,//[ ],
            "cnvcAccessory5":Array,//[ ],
            "cnvcAccessory6":Array,//[ ],
            "cnvcAccessory7":Array,//[ ],
            "cnvcAccessory8":Array,//[ ],
            "cnvcAccessory9":Array,//[ ],
            "cnvcAccessory10":Array,//[ ],
            "cnvcCompanyID":String,//"9",
            "cniIsDelete":String,//"0",
            "cnvcAdminEname":String,//"ky_wu",
            "cnvcAdminCname":String,//"吴克勇",
            "cndtAdminTime":String,//"2013-10-30T14:33:36+08:00",
            "cndStdTime":String//"2013-10-30T17:30:00+08:00"
          })
.toss();
